{% extends "layout.tpl" %}

{% block title %}{% endblock %}

{% block nav %}
	{% import 'nav.tpl' as nav %}
	{{nav.active('study')}}
{% endblock %}

{% block subpage %} class="g-html"{% endblock %}

{% block content %}
<div id="data" style="margin:100px; height:50%;"></div>
	<div class="g-main f-fr">
		<div class="mainbox">
            <h1 class="e-pt20 e-pb20 f-fs28">数据网格</h1>
			
			<!-- <style>
			.ui-table { width: 100%;}
			.ui-table td { height: 60px;}
			.ui-table td, .ui-table th { padding:5px; line-height: 20px; border:1px solid #ECEDEF; vertical-align: middle; font-size: 13px; word-break:break-all; box-sizing: content-box;}
			.ui-table th { text-align: center; background-color: #F7FAFF;}
			.ui-table .rows:hover { background-color: #F1FCFF;}
			.ui-table .rows.s-crt, .ui-table .rows.s-crt:hover { background-color: #D9F6FF;}
			.ui-table .table-row.s-hover { background-color: #F1FCFF;}
			.ui-table .table-row.s-crt { background-color: #D9F6FF !important;}
			.ui-table-nobd th { border:none;}
			.ui-table-nobd td { border-left:none; border-right:none;}

			
			.datagrid-table .ui-table { table-layout: fixed;}
			.datagrid-table .table-cell { padding-left: 0; padding-right: 0; text-align: center; vertical-align: middle;}
			.datagrid-table .cell-wrap, .datagrid-table .cell-text { display: inline-block; vertical-align: middle;}
			.datagrid-table .cell-wrap { width: 100%;}
			.datagrid-table .cell-text { margin: 0 5px;}
			.datagrid-table .cell-wrap.cell-nowrap { overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
			.datagrid-body, .datagrid-thead, .datagrid-title { position: relative;}
			.datagrid-fixed .datagrid-box { margin-top: -1px;}
			.datagrid-box { overflow: auto;}
			.datagrid-table-all .ui-table { width: 100%;}
			.datagrid-table-all .datagrid-thead { overflow: hidden; width:100%;}
			.datagrid-table-all .datagrid-box { width: 100%;}
			.datagrid-table-fixed { position: absolute; top:0; z-index: 1; background-color: #fff;}
			.datagrid-table-fixed .datagrid-box { overflow: hidden;}
			.datagrid-table-fixed .ui-table { width: auto;}
			.datagrid-table-left { left: 0;}
			.datagrid-table-right { right: 0;}
			.datagrid-paging { padding-top: 20px; height:30px;}
			.datagrid-order { position: relative; display: inline-block;}
			.datagrid-order b { left: 3px; cursor: pointer;}
			.datagrid-order b, .datagrid-order s, .datagrid-order i { position: absolute;}
			.datagrid-order s, .datagrid-order i { line-height:0; font-size:0; border:6px dashed transparent;}
			.datagrid-order-asc { top: -14px;}
			.datagrid-order-asc i { border-bottom-style:solid; border-bottom-color:#ccc;}
			.datagrid-order-asc.s-crt i { border-bottom-color:#46679e;}
			.datagrid-order-desc { bottom: 7px;}
			.datagrid-order-desc i { border-top-style:solid; border-top-color:#ccc;}
			.datagrid-order-desc.s-crt i { border-top-color:#46679e;}
			.datagrid-order-both .datagrid-order-asc { top:-18px;}
			.datagrid-order-both .datagrid-order-desc { bottom:2px;}
			
			
			
			
			.ui-paging { overflow:hidden; background-color:#fff;}
			

.ui-paging li { float:left; display:inline; text-align:center; margin-right:5px; line-height:22px;}
.ui-paging span,.ui-paging a,.ui-paging em,.ui-paging input,.ui-paging button { float:left;}
.ui-paging span,.ui-paging a { height:22px; width:22px; text-align:center; border:1px solid #ccc;}
.ui-paging span { background-color:#efefef;}
.ui-paging input { border:1px solid #DBDBDB; width:30px; height:22px; margin:0 3px; text-align:center; line-height:22px;}
.ui-paging button { margin-left:2px; width:40px; height:24px; border:1px solid #DBDBDB; background:#fff; cursor:pointer;}

.ui-checkradio, .ui-checkradio em, .ui-checkradio i { display:inline-block;}
.ui-checkradio em { cursor:pointer;}
.ui-checkradio input { opacity:0; filter:alpha(opacity=0);}
.ui-checkradio i { width:14px; height:14px; background:url("./images/check.png?v=4476ed8") no-repeat;}
.ui-checkradio .ui-checkbox.s-checked i { background-position:-20px 0;}
.ui-checkradio .ui-checkbox.s-dis i { background-position:-40px 0;}
.ui-checkradio .ui-radio i { background-image:url("./images/radio.png?v=5c641b3"); background-position: 0 -15px;}
.ui-checkradio .ui-radio.s-checked i { background-position:-15px -15px;}
.ui-checkradio .ui-radio.s-dis i { cursor:default; background-position: 0 0;}
.ui-checkradio .ui-radio.s-checked.s-dis i { background-position: -15px 0;}
.ui-checkradio .txt { margin-top: -1px; margin-left: 5px;}
			</style> -->
		</div>
	</div>
	{% import 'sidecol.tpl' as side %}
	{{side.active('cpns', 'datagrid')}}
{% endblock %}

{% block script %}
Nui.load('./script/demo')
{% endblock %}